package io.renren.modules.business.controller;

import com.qjznacos.common.exception.RRException;
import com.qjznacos.common.utils.R;
import io.renren.modules.business.feign.TestFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    @Autowired
    TestFeignService testFeignService;

    @RequestMapping("hello")
    public R hello(){
        throw new RRException("错误异常");

        //return testFeignService.hello();
    }
}
